﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="MultiSelectDropDowns.aspx.cs" Inherits="EwcControlTest.MultiSelectDropDowns" %>
<%@ Register Assembly="EnhancedWebControls" Namespace="EnhancedWebControls" TagPrefix="ewc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="ClientScripts/jquery-1.4.2.min.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="HeaderSection">
        MultiSelect Drop Downs
    </div>
    <div class="MessageSection">
        The Multi Select Drop Down controls below are testing various types of functionality. All the drop down controls are using default styles unless otherwise noted.
    </div>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            <div class="Section">
                <ewc:MultiSelectDropDown LabelText="Error Mode:" ID="MultiSelectDropDown2" runat="server" EmptyMessage="Select Item..." AutoPostBack="false" LabelWidth="200px" FieldWidth="220px"  ToolTip="Test Tip" ErrorMode="true" MaxHeight="200px" HideSelectAllButton="true" DeselectAllText="Clear (Show All)"></ewc:MultiSelectDropDown>
                <ewc:MultiSelectDropDown LabelText="No Empty Message:" ID="MultiSelectDropDown3" runat="server" AutoPostBack="false" LabelWidth="200px" FieldWidth="220px"  ToolTip="Test Tip" ></ewc:MultiSelectDropDown>
                <div style="float:left;clear:both;width:950px">
                    <ewc:MultiSelectDropDown LabelText="AutoPostBack:" ID="MultiSelectDropDown5" runat="server" EmptyMessage="Select Item..." AutoPostBack="true" OnSelectedIndexChanged="ddlMultiSelect_SelectedIndexChanged" LabelWidth="200px" FieldWidth="220px"  ToolTip="Test Tip"></ewc:MultiSelectDropDown>
                    <asp:Label ID="lblResults1" runat="server" cssclass="TestResults" Visible="false"></asp:Label>       
                </div>
                <ewc:MultiSelectDropDown LabelText="Static Data:" ID="MultiSelectDropDown4" runat="server" EmptyMessage="Select Item..." DoNotListSelectedInTextBox="true" AutoPostBack="true" OnSelectedIndexChanged="ddlMultiSelect_SelectedIndexChanged"  LabelWidth="200px" FieldWidth="220px" ToolTip="Test Tip">
                    <asp:ListItem Text="Item 1" Value="1"></asp:ListItem>
                    <asp:ListItem Text="Item 2" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Item 3" Value="3"></asp:ListItem>
                    <asp:ListItem Text="Item 4" Value="4"></asp:ListItem>
                    <asp:ListItem Text="Item 5" Value="5"></asp:ListItem>
                    <asp:ListItem Text="Item 6" Value="6"></asp:ListItem>
                </ewc:MultiSelectDropDown>
                <ewc:MultiSelectDropDown LabelText="Label Mode (Show All):" ID="MultiSelectDropDown1" runat="server" EmptyMessage="Select Item..." AutoPostBack="false" LabelWidth="200px" FieldWidth="220px" ToolTip="Test Tip" LabelMode="ShowAllItems">
                    <asp:ListItem Text="Item 1" Value="1" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Item 2" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Item 3" Value="3" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Item 4" Value="4"></asp:ListItem>
                    <asp:ListItem Text="Item 5" Value="5" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Item 6" Value="6"></asp:ListItem>
                </ewc:MultiSelectDropDown>
                <ewc:MultiSelectDropDown LabelText="Label Mode (Show Selected):" ID="MultiSelectDropDown6" runat="server" EmptyMessage="Select Item..." AutoPostBack="false" LabelWidth="200px" FieldWidth="220px" ToolTip="Test Tip" LabelMode="ShowSelectedItems">
                    <asp:ListItem Text="Item 1" Value="1" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Item 2" Value="2"></asp:ListItem>
                    <asp:ListItem Text="Item 3" Value="3" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Item 4" Value="4"></asp:ListItem>
                    <asp:ListItem Text="Item 5" Value="5" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Item 6" Value="6"></asp:ListItem>
                </ewc:MultiSelectDropDown>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
